Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution #4487

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

solution #4487

wants to merge 2 commits into from

Conversation

MakksymSly
Copy link

  • DEMO LINK

  • TEST REPORT LINK

  • Icon implemented using background-image CSS property

  • Inputs are written inside of 'form' tag with correctly passed attributes

  • All Typical Mistakes from BEM lesson theory are checked.

  • Code follows all the Code Style Rules ❗️

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on addressing most of the feedback! There are a few minor issues to keep in mind for the future, such as fixing typos in class names for consistency and ensuring fallback fonts are provided. Also, remember to avoid using the universal selector for performance reasons and keep your indentation consistent. These are small improvements that can enhance the quality of your code. Keep up the good work! 👍💻

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines +20 to +22
<form
class="big-search-form"
data-qa="big"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The class name big-search-form does not represent the meaning of the content. Consider using a name that reflects the function of the form rather than its appearance. For example, search-form or main-search-form could be more appropriate if this form is intended for searching content.

Comment on lines +31 to +33
<form
class="small-seach-form"
data-qa="small"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a typo in the class name small-seach-form. It should be small-search-form to maintain consistency and correct naming.

Comment on lines +20 to +29
<form
class="big-search-form"
data-qa="big"
>
<input
class="search-form__input search-form__input--big"
type="text"
data-qa="keypress"
placeholder="Try “Los Angeles“"
/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use 2 spaces for indentation in your file. The <input> element nested within the <form> element should be indented with 2 spaces relative to its parent.

Comment on lines +31 to +40
<form
class="small-seach-form"
data-qa="small"
>
<input
class="search-form__input search-form__input--small"
type="text"
data-qa="small"
placeholder="Try “Los Angeles“"
/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation here is inconsistent with the rest of the file. Ensure that the <input> element is indented with 2 spaces relative to its parent <form> element.

Comment on lines +11 to +14
* {
margin: 0;
padding: 0;
box-sizing: border-box;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use * selector (it impacts performance). Set styles only for elements that require them.


color: #3d4e61;

font-family: Avenir-Book, serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, font-family: Avenir-Book, Arial, sans-serif;.

}

.search-form__input::placeholder {
font-family: Avenir-Book, sans-serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, font-family: Avenir-Book, Arial, sans-serif;.

}

.search-form__input:focus {
font-family: Avenir-Heavy, serif;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, font-family: Avenir-Heavy, Arial, sans-serif;.

box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.small-seach-form {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in the class name .small-seach-form, it should be .small-search-form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants